﻿<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>请稍后</title>
    <link rel="stylesheet" type="text/css" href="${ui_css_path}" />
</head>
<body>
    <div class="page-top">
        <a href="javascript:;" class="logo hidden">
            <h1 field="sysName">-</h1>
        </a>
        <div class="page-user">
            <img field="userAvatar" class="avatar" />
            <div class="text">
                <span field="dateStr"></span><br />
                欢迎您：<span class="username" field="userName"></span>
                【<a href="javascript:;" id="btn_logout" title="安全退出系统">退出</a>】
            </div>
        </div>

        <ul class="icon-ctrl hidden">
            <li class="first">
                <a class="title" href="javascript:FwMenu.change('home');">
                    <img class="icon" src="/framework/mui/css/latest/icon_user.png" height="20" />我的首页
                </a>
            </li>


            <li class="drop">
                <a class="title">
                    <img class="icon" src="/framework/mui/css/latest/icon_server.png" height="20" />网站管理
                </a>
                <div class="menu" style="width:200px;">
                    <a class="block" href="javascript:;" onclick="FwMenu.change('site');">
                        <img class="icon" src="/framework/mui/css/latest/icon_secret.png" style="height:15px" />
                        <b>基本管理</b>
                    </a>
                    <a class="block" href="javascript:;" onclick="FwMenu.change('content');">
                        <img class="icon" src="/framework/mui/css/latest/icon_chart.png" style="height:15px" />
                        <b>内容管理</b>
                    </a>
                </div>
            </li>

            <li>
                <a class="title" href="javascript:FwMenu.change('system');">
                    <img class="icon" src="/framework/mui/css/latest/icon_config.png" height="20" />系统管理
                </a>
            </li>
            <!--
            <li><a href="javascript:;" class="drop"><img class="icon" src="/framework/mui/css/latest/icon_config.png" height="20" />权限管理</a></li>
            <li><a href="javascript:;" class="drop"><img class="icon" src="/framework/mui/css/latest/icon_user.png" height="20" />人员管理</a></li>-->
        </ul>



        <div class="clearfix"></div>
    </div>

    <div class="page-main">
        <div class="page-main-right" id="page-main-right">
            <div id="pagetabs" class="page-tabs">
                <ul> </ul>
                <div class="clearfix"></div>
            </div>
            <div style="height:0px;overflow:hidden;clear:both;display:none;">针对IE7优化</div>
            <div class="page-frames" id="pageframes">
                <div class="mask hidden"></div>
                <div class="loading hidden" style="width:200px"><div><span class="lft"><span class="main"><span class="text">加载中 ...</span></span></span></div></div>
                <div class="frames"></div>
                <div class="page-frame-shadow hidden">这是为支持分列右侧拖动</div>
            </div>
        </div>

        <div class="page-main-left" id="page-main-left">
            <div class="page-left-menu">
                <!--
                <div class="title" group="home"><span>车辆管理</span></div>
                <ul class="current">
                    <li>
                        <a url="/admin/car/AddCarProfile">
                            车辆录入
                        </a>
                    </li>
                </ul>
                <div class="clearfix"></div>-->
            </div>
        </div>

        <div id="page-main-split" class="page-main-split" min="120" max="600"></div>
    </div>


    $js()

    <script type="text/javascript"> window._path = '${admin_path}';</script>
    <script type="text/javascript" src="?res=dWlfY29tcG9uZW50&amp;${version}.js"></script>
    <script type="text/javascript" src="${ui_custom_js_path}">        /*用户自定义JS*/</script>
    <script type="text/javascript">
        var pageVar = {
            sysName: ':: 控制面板中心管理端 一 Ops Cms .NET! v${version} ::',
            sysLogo: '',
            dateStr: '2014-10-15',
            firstTabName: '欢迎首页',
            // firstIframeUrl: '?module=system&action=indexmain',
            firstIframeUrl: '?module=system&action=welcome',
            userName: '管理员',
            userAvatar: '/framework/mui/css/latest/avatar.gif'
        };

        /** 获取时间 **/
        var cmath = function (v) {
            return v < 10 ? '0' + v : v;
        };
        function getDate(dt) {
            if (!dt) {
                dt = new Date();
            }
            var chWeekNames = ['日', '一', '二', '三', '四', '五', '六'];
            return cmath(dt.getFullYear()) + '年' + cmath(dt.getMonth() + 1) + '月' + cmath(dt.getDate()) + '日&nbsp;/&nbsp;周' +
                  chWeekNames[dt.getDay()];
            /*+ '&nbsp;' + cmath(dt.getHours()) + ':' + cmath(dt.getMinutes()) + ':' + cmath(dt.getSeconds());*/
        };
        pageVar.dateStr = getDate();
        document.title = pageVar.sysName;
        $JS.json.bind(document, pageVar);

        //绑定logo
        var logoEle = document.getElementsByClassName('logo')[0];
        if (pageVar.sysLogo && pageVar.sysLogo.length > 0) {
            logoEle.style.background = 'url(' + pageVar.sysLogo + ')';
        }
        logoEle.className = 'logo';


        //初始化站点
        var timer = setInterval(function () {
            if (window.menuData != null) {
                clearInterval(timer);
                //window.M.loadCatTree();
                // menu_init();
                FwMenu.init(window.menuData, window.menuHandler);
                FwMenu.change();


                //加载栏目树
                _loadCategoryTree();

            }
        }, 100);


        $JS.event.add(window, 'load', function () {
            $JS.event.add($JS.$('btn_logout'), 'click', function () {
                if (confirm('请确认您已经操作完毕并做好数据保存工作！确定继续吗？')) {
                    location.replace('?module=system&action=logout');
                }
            });

            FwTab.show(pageVar.firstTabName, pageVar.firstIframeUrl, false);

            //下拉菜单事件注册
            var menuLis = document.getElementsByClassName('icon-ctrl')[0].getElementsByTagName('LI');
            $JS.each(menuLis, function (i, e) {
                if (e.className.indexOf('drop') != -1) {
                    $JS.hover(e);
                }
            });
        });

    </script>
</body>
</html>
